package com.huike.clues.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huike.clues.domain.SysDictData;
import com.huike.clues.mapper.SysDictDataMapper;
import com.huike.clues.service.ISysDictDataService;
import org.springframework.stereotype.Service;


import com.huike.clues.service.ISysDictDataService;

import java.util.List;

@Service
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper,SysDictData> implements ISysDictDataService {
    /**
     * 根据字典类型查询字典数据信息
     *
     * @param dictType
     * @return
     */
    @Override
    public List<SysDictData> getData(String dictType) {
        return this.list(Wrappers.<SysDictData>lambdaQuery().eq(SysDictData::getDictType,dictType));
    }
}
